import { Moment } from 'moment';

export interface IDeliverRequest {
    id?: number;
    userId?: number;
    from?: string;
    to?: string;
    fromDate?: Moment;
    dueDate?: Moment;
    goodsType?: string;
    goodsWeight?: string;
    goodsDesc?: string;
    description?: string;
    price?: number;
    status?: string;
    createdDate?: Moment;
}

export class DeliverRequest implements IDeliverRequest {
    constructor(
        public id?: number,
        public userId?: number,
        public from?: string,
        public to?: string,
        public fromDate?: Moment,
        public dueDate?: Moment,
        public goodsType?: string,
        public goodsWeight?: string,
        public goodsDesc?: string,
        public description?: string,
        public price?: number,
        public status?: string,
        public createdDate?: Moment
    ) {}
}
